package com.glsc.ngateway.common.base.repo.mysql.gateway.platform.system;

import com.glsc.ngateway.common.base.domain.mysql.gateway.system.SystemClassConfig;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

@Repository
public interface SystemClassConfigRepository extends JpaRepository<SystemClassConfig, Integer>, JpaSpecificationExecutor<SystemClassConfig> {

    SystemClassConfig findByMainClassAndSystemClass(String mainClass, String systemClass);

    SystemClassConfig findByBusinessType(String businessType);

    boolean existsByBusinessTypeAndClassNoSeq(String businessType, Integer classNoSeq);
}